package com.itheima.pojo;

import com.itheima.mapper.EmpSalarys;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
    private Integer id;   //员工ID
    private String username;   //用户名
    private String password;   //密码
    private String name;        //姓名
    private Integer gender;     //性别
    private String phone;       //手机号
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime entryTime;      //入职时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;   //更新时间
    private double overSalary;
    private Empsalarys empsalarys;


}
